<br><br><br>
<form name="form1" method="post" action="template.php?page=orientando_consultar.php">
  <table width="735" border="1" rules="groups">
    <tr bgcolor="#0066CC"> 
    <td colspan="3"><div align="center" class="style3 style1"><font color="#FFFFFF">CONSULTAR ORIENTANDO</font></div></td>
  </tr>
  <tr> 
    <td width="15%">Tipo de Pesquisa:</td>
    <td width="21%">
        <select name="selTipoPesquisa">
		     {html_options values=TODOS selected=$smarty.post.selTipoPesquisa output=TODOS}
		     {html_options values=RA selected=$smarty.post.selTipoPesquisa output=RA}          
		     {html_options values=CPF selected=$smarty.post.selTipoPesquisa output=CPF}          
		     {html_options values=NOME selected=$smarty.post.selTipoPesquisa output=NOME}          			 			 
        </select>
    </td>
      <td width="64%"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
        <input name="descricao" type="text" id="descricao" value="{$smarty.post.descricao}" size="50">
        <input name="btnPesquisar" type="submit" id="btnPesquisar" value="Pesquisar"> </td>
  </tr>
</table>
</form>
<br><br>
{if $exibirGrid}
<table width="735" border="1" rules="all">
  <tr bgcolor="#0066CC"> 
    <td colspan="1"><div align="center" class="style3 style1"><font color="#FFFFFF">CPF</font></div></td>
    <td colspan="1"><div align="center" class="style3 style1"><font color="#FFFFFF">RA</font></div></td>	
    <td colspan="1"><div align="center" class="style3 style1"><font color="#FFFFFF">NOME</font></div></td>
    <td colspan="1"><div align="center" class="style3 style1"><font color="#FFFFFF">STATUS</font></div></td>
    <td colspan="4"><div align="center" class="style3 style1"><font color="#FFFFFF">OPERACOES</font></div></td>
  </tr>
  {section name=cont loop=$vet start=0}
      {if $cor == '#fafafa'}
		{assign var="cor" value="#eeeeea"}  
      {else}
        {assign var="cor" value="#fafafa"} 
      {/if}
	  
  <tr bgcolor="{$cor}"> 
    <td>{$vet[cont].PsCpf}</td>
	<td align="left">{$vet[cont].OrRa}</td>	
    <td align="left">{$vet[cont].PsNome}</td>
	{if $vet[cont].OrStatus == 'T'}
       <td align="center">Ativo</td>
	{else}  
  	   <td align="center">Inativo</td>
	{/if}
    <td align="center"><a href="template.php?page=manter_orientando.php&acao=orientando_visualizar&cpf={$vet[cont].PsCpf}&ra={$vet[cont].OrRa}">Visualizar</a></td>
    <td align="center"><a href="template.php?page=manter_orientando.php&acao=orientando_alterar&cpf={$vet[cont].PsCpf}&ra={$vet[cont].OrRa}">Alterar</a></td>
	{if $vet[cont].OpId == ''}
    <td align="center"><a href="template.php?page=manter_orientando.php&acao=orientando_excluir&cpf={$vet[cont].PsCpf}&ra={$vet[cont].OrRa}">Excluir</a></td>
        <td align="center"><a href="template.php?page=alocar_projeto.php&acao=orientando_lista_projeto&cpf={$vet[cont].PsCpf}&ra={$vet[cont].OrRa}">Alocar Projeto</a></td>	
	{else}
	    <td align="center">Inabilitado</td>
   	    <td align="center"><a href="template.php?page=alocar_projeto.php&acao=visualizar_projeto&cpf={$vet[cont].PsCpf}&ra={$vet[cont].OrRa}">Visualizar Projeto</a></td>	
	{/if}
  </tr>
  {/section} 
</table>
{/if}
<br><br>
<table width="735" border="0">
  <tr>
    <td width="50%">
	 <form name="frmNovoCadastro" action="template.php?page=manter_orientando.php" method="post">
          <input type="submit" name="btnNovoOrientando" value="Novo Orientando">
	 </form>  
	</td>
  </tr>
</table>